
#复制文件到容器

docker cp root.crt netshoot:/root/
docker cp root-private.key netshoot:/root/
docker cp root-public.key netshoot:/root/

docker cp user-private.key netshoot:/root/
docker cp user-public.key netshoot:/root/
docker cp user.csr netshoot:/root/
docker cp website_extfile.ext netshoot:/root/


openssl x509 -req -sha512 -set_serial -1378661552 -days 365 -extfile website_extfile.ext -CA root.crt -CAkey root-private.key -CAcreateserial -in user.csr -out user.crt
docker cp netshoot:/root/user.crt ./user-docker.crt

docker cp user-private.key nginx:/usr/share/nginx/html/haha-private.key
docker cp user.crt nginx:/usr/share/nginx/html/haha-signed.cer
docker restart nginx


docker cp user-docker.crt nginx:/usr/share/nginx/html/haha-signed.cer
docker restart nginx
